home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 February / Chip_2003-02_cd1.bin / zkuste / xptools / install / Xsetup / setup.exe / {app} / plugins / XQ WinXP Shutdown UI 1.xpl < prev    next >
Text File  |  2002-12-06  |  1KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Shutdown\Windows NT/2K/XP\00) Shutdown Menu"
  5. "NAME"="Windows XP Shutdown Reason"
  6. "VERSION"="1.00"
  7. "OSVERSION"="000001"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Enabled Shutdown Reason UI"
  10. "DESCRIPTION 1"="This option, if enabled, prompts the user for a reason why the computer is shut down. This information must be provided before the computer can be shut down and will be logged into the event log."
  11. "DESCRIPTION 2"="This can be used if this computer will be used as a sort of server and you want to know who has shut down it and why."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="Thanks to Alexander Khoroshev <aelric@atnet.ru> for the bug notice!"
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. sP="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability\ShutdownReasonUI"
  24.  
  25. Sub Plugin_Initialize 
  26.   i=RegReadValue(sP)
  27.   if i=1 then SetUIElement 1,true
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  b=GetUIElement(1)
  35.  if b=true then
  36.     Call RegWriteValue(sp,1,2)
  37.  else
  38.    Call RegWriteValue(sp,0,2)
  39. '    if RegValueExists(sP) then
  40. '       Call RegDeleteValue(sP)
  41. '    end if
  42.  end if
  43.  
  44. End Sub
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.  
  49.  
  50.  
  51.